/**
 * BIP运算单 api 封装
 *
 * @Author:    AKITA
 * @Date:      2025-08-13 14:18:32
 * @Copyright  AKITA
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const bipordApi = {

    /**
     * 分页查询  @author  AKITA
     */
    queryPage : (param) => {
        return postRequest('/bipord/queryPage', param);
    },

    /**
     * 增加  @author  AKITA
     */
    add: (param) => {
        return postRequest('/bipord/add', param);
    },

    /**
     * 修改  @author  AKITA
     */
    update: (param) => {
        return postRequest('/bipord/update', param);
    },


    /**
     * 删除  @author  AKITA
     */
    delete: (id) => {
        return getRequest(`/bipord/delete/${id}`);
    },

    /**
     * 批量删除  @author  AKITA
     */
    batchDelete: (idList) => {
        return postRequest('/bipord/batchDelete', idList);
    },

    info: (id) => {
        return getRequest(`/bipord/info/${id}`);
    },


    passDown: (id,version) => {
        return getRequest(`/bipord/passDown/${id}?version=${version}`);
    },


};


export const bipordbApi = {

    /**
     * 分页查询  @author  AKITA
     */
    queryPage : (param) => {
        return postRequest('/bipordb/queryPage', param);
    },

    /**
     * 增加  @author  AKITA
     */
    add: (param) => {
        return postRequest('/bipordb/add', param);
    },

    /**
     * 修改  @author  AKITA
     */
    update: (param) => {
        return postRequest('/bipordb/update', param);
    },


    /**
     * 删除  @author  AKITA
     */
    delete: (id) => {
        return getRequest(`/bipordb/delete/${id}`);
    },

    /**
     * 批量删除  @author  AKITA
     */
    batchDelete: (idList) => {
        return postRequest('/bipordb/batchDelete', idList);
    },

    deleteByLineNum:(param) => {
        return postRequest('/bipordb/deleteByLineNum', param);
    },

};

